package cn.getech.data.development.mapper;

import cn.getech.data.development.dto.JobNodeLayConfigDto;
import cn.getech.data.development.entity.JobNodeLayConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface JobNodeLayConfigMapper extends BaseMapper<JobNodeLayConfig> {

    void batchInsert(@Param("olderJobNodeLayConfigs") List<JobNodeLayConfig> olderJobNodeLayConfigs);

    List<JobNodeLayConfigDto> selectDtoListByJobNodeId(@Param("jobNodeId")Integer jobNodeId, @Param("jobId")Integer jobId);

    List<JobNodeLayConfigDto> selectDtoListByUpJobNodeId(@Param("upJobNodeId")Integer jobNodeId, @Param("jobId")Integer jobId);

    void batchUpdate(@Param("jobNodeLayConfigDtoList")List<JobNodeLayConfigDto> jobNodeLayConfigDtoList);

    List<JobNodeLayConfig> selectListByJobIds(@Param("jobIds") Set<Long> jobIds);
}
